from django.urls import path

from . import views


urlpatterns = [
    path('', views.HomePageDisplay.as_view(), name='home_page'),
    path('library/', views.LibraryDisplay.as_view(), name='library'),
    path('book/<str:slug>/', views.BookDisplay.as_view(), name='book'),
    path('books/', views.BooksDisplay.as_view(), name='books'),
    path('book/<str:book>/<str:action>/<int:page>/', views.BookBookmark.as_view(), name='bookmark'),
    path('book/<str:book>/<int:page_number>/', views.AddingLastPage.as_view(), name='adding_last_page'),
    path('book/<str:book>/<str:action>/', views.BookFavorites.as_view(), name='bookmark'),
]
